import { BasicColumn } from '/@/components/Table';
import { FormSchema } from '/@/components/Table';
import { assetInfoFields } from '@/views/asset/asset-info/AssetInfo.data';
//列表数据
export const columns: BasicColumn[] = [
  {
    title: assetInfoFields.name,
    align: 'center',
    dataIndex: 'name',
  },
  {
    title: assetInfoFields.custodyDepartment,
    align: 'center',
    width: 100,
    dataIndex: 'custodyDepartment_dictText',
  },
  {
    title: assetInfoFields.user,
    align: 'center',
    width: 100,
    dataIndex: 'user_dictText',
  },
  {
    title: assetInfoFields.position,
    align: 'center',
    width: 100,
    dataIndex: 'position_dictText',
  },
  {
    title: assetInfoFields.cartegory,
    align: 'center',
    width: 100,
    dataIndex: 'cartegory_dictText',
  },
  {
    title: assetInfoFields.code,
    align: 'center',
    dataIndex: 'code',
  },

  {
    title: assetInfoFields.rfid,
    align: 'center',
    dataIndex: 'rfid',
  },
];
//查询数据
export const searchFormSchema: FormSchema[] = [
  {
    label: assetInfoFields.name,
    field: 'name',
    component: 'Input',
    colProps: { span: 6 },
  },
  // {
  //   label: assetInfoFields.cartegory,
  //   field: 'cartegoryId',
  //   component: 'JTreeSelect',
  //   componentProps: {
  //     treeCheckable: false,
  //     multiple: false,
  //     //标题
  //     //下拉树
  //     treeData: [],
  //   },

  //   colProps: { span: 5 },
  // },
  {
    label: assetInfoFields.code,
    field: 'code',
    component: 'Input',
    colProps: { span: 6 },
  },
];
